package com.hrt.manage.member.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.hrt.base.BaseDaoImpl;
import com.hrt.bean.HRTMember;
import com.hrt.manage.member.dao.HRTMemberDao;
@Repository
public class HRTMemberDaoImpls extends BaseDaoImpl<HRTMember> implements HRTMemberDao{
	public HRTMemberDaoImpls() {
	}

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public List queryByCondition(List conditons) {
		return conditons;

	}

	@Override
	public HRTMember queryByName(String name) {
		String sql = "from HRTMember a where a.mbrName = '"+name+"'";
		return (HRTMember) getHibernateTemplate().find(sql).get(0);
	}
	
	/**查询成功注册的会员*/
	@SuppressWarnings("unchecked")
	@Override
	public List<HRTMember> findDelHRTMember() {
		return this.getHibernateTemplate().find("from HRTMember me where me.isdelete=0 and me.isMobileVaild=1 or me.isMailVaild=1");
	}
}
